feat: add dedicated JavaScript thread support#512
Merged
Conversation
answer-huang
approved these changes
Nov 5, 2023
fd15f34 to
b74961b
Compare
d504f8f to
47d0ef9
Compare
38bb28b to
32d60f4
Compare
776fd4f to
4cf7c07
Compare
0b217a3 to
f2adf57
Compare
7e4d14b to
b841321
Compare
3db0328 to
4dbfca3
Compare
yifei8
approved these changes
Dec 27, 2023
1ecfb58 to
79dc274
Compare
andycall
added a commit
that referenced
this pull request
Aug 12, 2024
Prior to WebF 0.16.0 "[Add Dedicated Threading support.](#512)", the JSRuntime lifecycle was managed by the DartIsolateContext lifecycle.  But in Dedicated threads, the JSRuntime life cycle must be managed by the WebFPage life cycle, and the `runtime_` redundancy created in DartIsolateContext. Therefore, JSRuntime lifetime managed by WebFPage lifetime in UI thread mode is more uniform 
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RFC: openwebf/rfc#4
First version implemented by @penneryu and improved by @andycall
Use example:
Design Graph:
performance comparison:
Test devices: Moto Qingyou XT1799 arch: arm
Test code: